<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head th:include="/common/base :: base"></head>
	<body>
		<div style="width:500px ; margin: auto;">
			<div class="panel panel-default">
				<div class="panel-heading">
					添加信息
				</div>
				<div class="panel-body">
					<form class="form-horizontal" role="form" th:action="@{/admin/info/add}">
						<div class="form-group">
							<label for="firstname2" class="col-sm-2 control-label">类型:</label>
							<div class="col-sm-10" id="firstname2">
								<select class="form-control" name="typeId">
									<option th:each="type : ${typeList}"
										th:value="${type.getTypeId()}"
										th:text="${type.getTypeName()}"
									/>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label for="firstname" class="col-sm-2 control-label">内容:</label>
							<div class="layui-input-block">
								<textarea name="infoContent" placeholder="内容" id="firstname" class="layui-textarea"></textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<button type="submit" class="btn btn-success">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<button type="reset" class="btn btn-primary">重置</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<button type="button"  class="btn btn-info" onclick="javascript:history.go(-1)" >返回</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</body>

</html>